; Fix 'thing-at-point' edge case involving overlapping matches
authorEshel Yaron <me@eshelyaron.com>
Sat, 10 Feb 2024 16:30:27 +0000 (17:30 +0100)
committerEshel Yaron <me@eshelyaron.com>
Sat, 10 Feb 2024 16:39:26 +0000 (17:39 +0100)
commit939187fd7a07249a1a76d98e8d91051fa76b8727
treefe66b74db0c900cab3d99f99502a5454072feb8b
parent55b4a743b6f3d452d98f135763b00965caba5240
; Fix 'thing-at-point' edge case involving overlapping matches

* lisp/thingatpt.el (thing-at-point-looking-at): When finding a match
that ends before point, continue searching from the beginning of that
match, not its end, in case the match we're looking is overlapping with
this one.
* test/lisp/thingatpt-tests.el
(thing-at-point-looking-at-overlapping-matches): New test.
lisp/thingatpt.el
test/lisp/thingatpt-tests.el